// 饲养员类
class Zookeeper extends Person{

    //调用父类构造方法
    public Zookeeper(String name, int age) {
        super(name, age);
    }

    @Override
    // 饲养员喂养动物的方法
    public void feedAnimal(Animal animal, String food) {
        System.out.println(super.age + "岁的" + super.name + " 正在喂 " + animal.getAnimalType() + food + "。");
    }
}